package com.keepmoving.po;

import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Date;

/**
 * @author zxd
 * 用户实体类
 */
public class User {
    /**
     * 用户序号
     */
    private int id;
    /**
     * 用户名
     */
    private String userName;

    /**
     * 密码
     */
    private String pass;
    /**
     * 性别
     */
    private String sex;
    /**
     * 生日
     */
//    @DateTimeFormat
    private Date birthday;
    /**
     * 爱好
     */
    private String like;
    /**
     * 标识id
     */
    private int lId;
    /**
     * 地址
     */
    private String address;
    /**
     * 电话
     */
    private String tel;
    /**
     * 训练次数
     */
    private int number;

    public User() {
    }

    public User(String userName, String pass, String sex, Date birthday, String like, String address, String tel) {
        this.userName = userName;
        this.pass = pass;
        this.sex = sex;
        this.birthday = birthday;
        this.like = like;
        this.address = address;
        this.tel = tel;
    }

    public User(int id, String userName, String pass, String sex, Date birthday, String like, int lId, String address, String tel, int number) {
        this.id = id;
        this.userName = userName;
        this.pass = pass;
        this.sex = sex;
        this.birthday = birthday;
        this.like = like;
        this.lId = lId;
        this.address = address;
        this.tel = tel;
        this.number = number;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getLike() {
        return like;
    }

    public void setLike(String like) {
        this.like = like;
    }

    public int getlId() {
        return lId;
    }

    public void setlId(int lId) {
        this.lId = lId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", pass='" + pass + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", like='" + like + '\'' +
                ", lId=" + lId +
                ", address='" + address + '\'' +
                ", tel='" + tel + '\'' +
                ", number=" + number +
                '}';
    }
}
